package com.qf.controller;

import com.qf.service.UserBService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhaojian
 */
@RestController
public class UserBController {

    @Autowired
    private UserBService userBService;

    @RequestMapping("/decr")
    public String decrB(@RequestParam(value = "id") Integer id,
                      @RequestParam(value = "money") Integer money) {
        userBService.decrB(id, money);
        return "b账户操作成功!";
    }
}
